package hu.blok1.veilingsite.client.data;

import hu.blok1.veilingsite.shared.Address;
import hu.blok1.veilingsite.shared.User;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface AccountServiceAsync {
	void logIn(User user, AsyncCallback<User> callback)
			throws IllegalArgumentException;
	void createAccount(User _newUser, Address _newAddress, AsyncCallback<Boolean> callback) throws IllegalArgumentException;
	void updateUser(User user, Address address, AsyncCallback<Boolean> callback) throws IllegalArgumentException;
	void changePassword(User userToChangePassword, AsyncCallback<Boolean> callback) throws IllegalArgumentException;
}
